package com.xian.demo;

public class Test4 {
    public static void main(String[] args) {
        //需求：方法内存运行机制---方法的运行区域在,,栈内存
        study();
    }

    public static void eat(){
        System.out.println("吃饭！！！");
    }
    public static void sleep(){
        System.out.println("睡觉！！！");

    }

    public static void study(){
        eat();
        System.out.println("学习！！！");
        sleep();
    }
}
